package org.xx.armory.config.security;

import org.xx.armory.config.NamedSection;

public final class KeySection
        implements NamedSection {
    private String name;
    private boolean enabled;
    private byte[] value;

    public KeySection() {
        this.name = "";
        this.enabled = true;
        this.value = new byte[0];
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public final String getName() {
        return name;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public final void setName(
            String name
    ) {
        this.name = name;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public boolean isEnabled() {
        return this.enabled;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public void setEnabled(
            boolean enabled
    ) {
        this.enabled = enabled;
    }

    public final byte[] getValue() {
        return value;
    }

    public final void setValue(
            byte[] value
    ) {
        this.value = value;
    }
}
